package day05.demo03;

public class Demo07ArrayReverse {
    public static void main(String[] args) {
        int[] Array = {1, 2, 3, 4, 5, 6, 7, 8, 9};
        int a;
        int len = Array.length;
        for (int i = 0; i < len / 2; i++) {
            a = Array[i];
            Array[i] = Array[len - i-1];
            Array[len - i-1] = a;
        }
        for (int j = 0; j < len; j++) {
            System.out.print(Array[j]);
        }
    }

}
